/**
 * 
 */
package model;

import model.StudentDAOStub.Student;

/**
 * @author annvcit
 * @full_name Nguyen Van Chuc An
 * @date_created Dec 23, 2014
 * @email annvcit@gmail.com
 */
public class Student_client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			StudentDAOStub serviceStub = new StudentDAOStub();
			StudentDAOStub.GetStudents getStudents = new StudentDAOStub.GetStudents();
			getStudents.setClass_id("DH11DT");
			
			StudentDAOStub.GetStudentsResponse getStudentResponse = 
					serviceStub.getStudents(getStudents);
			Student[] result = getStudentResponse.get_return();
			for (int i = 0; i < result.length; i++) {
				Student st = result[i];
				System.out.println(st.getSTUDENT_IT() + " - "
						+ st.getSTUDENT_NAME() + " - "  + st.getCLASS_ID());
			}
			
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
